/*
 * LineSensorArray.h
 *
 *  Created on: Jan 14, 2011
 *      Author: Robotics
 */

#ifndef LINESENSORARRAY_H_
#define LINESENSORARRAY_H_

#include "DigitalInput.h"
#include "PIDSource.h"

class LineSensorArray:public PIDSource {
public:
	LineSensorArray();
	virtual ~LineSensorArray();
	int getPosition();
	void setPrefersRight(bool);
	bool getLeftSensor();
	bool getMiddleSensor();
	bool getRightSensor();
	double PIDGet();
	
		

private:
	DigitalInput m_leftSensor, m_middleSensor, m_rightSensor;
	bool m_prefersRight;
	int m_lastPosition;

};

#endif /* LINESENSORARRAY_H_ */
